//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// 			VisualNovelToolkit		     /_/_/_/_/_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe.	/_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.

using UnityEngine;
using System.Collections;

/// <summary>
/// ITransition.
/// </summary>
public class ITransition : MonoBehaviour {
	static protected ITransition m_Instance;
	static public ITransition Instance{
		get{ return m_Instance; }
	}
	
	protected bool m_IsFinish;
	public bool isFinish{
		get{ return m_IsFinish; }
	}

	/// <summary>
	/// OnEnable and the Enabled Object is the Instance.
	/// </summary>
	void OnEnable(){
		if( m_Instance == null){
			m_Instance = this;	
		}			
	}
	
	/// <summary>
	/// OnDisable and the Instance is NULL.
	/// </summary>
	void OnDisable(){
		m_Instance = null;
	}

	virtual public void BeginTransition(){}

	virtual public void EndTransition(){}

}
